<?php

namespace App\Http\Controllers;

use App\Models\Teambition;
use App\Repositories\Teambition\TeambitionFilter;
use App\Repositories\Teambition\TeambitionRepository;
use App\Transformers\TeambitionTransformer;
use Illuminate\Http\Request;

class TeambitionController extends Controller
{
    public function index(TeambitionRepository $teambitionRepository, Request $request)
    {
        $paginator = $teambitionRepository->getPaginator(new TeambitionFilter($request));
        return $this->response->paginator($paginator, new TeambitionTransformer());
    }

}


